package com.zhuchang.self_rpc.test.democoding.nettydubbo.client;

import com.zhuchang.self_rpc.test.democoding.nettydubbo.server.HelloService;

/**
 * @Author RenPu
 * @Date 2022/2/12 16:11
 * @Version 1.0
 * @Description:
 **/
public class ClientBootStrap {
    private static final  String  providerName="HelloService#hello#";

    public static void main(String[] args) throws InterruptedException {
        NettyDubboClient nettyDubboClient = new NettyDubboClient();
        HelloService helloService= (HelloService)nettyDubboClient.getBean(HelloService.class,providerName);

        for (;;){
            Thread.sleep(2*1000);
            String hello = helloService.hello("你好，dubbo .....");
            System.out.println("调用的结果为：result="+hello);


        }
    }







}
